package com.ld.dao;

import com.ld.entity.BannerN;
import com.ld.entity.BannerNew;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class MongoBannerNDao {

    @Autowired
    private MongoTemplate mongoTemplate;

    public List<BannerN> getList(){
       return mongoTemplate.findAll(BannerN.class,"BannnerN");
    }
}
